#ifndef QMYVIDEOWIDGET_H
#define QMYVIDEOWIDGET_H

#include <QVideoWidget>
#include <QWidget>
#include <QVideoWidget>
#include <QMediaPlayer>

class QMediaPlayer;
class QVideoWidget;

class QmyVideoWidget : public QVideoWidget

{
    Q_OBJECT
public:
    QmyVideoWidget(QWidget *parent = nullptr);
    void setMediaPlayer(QMediaPlayer *player);

    void keyPressEvent(QKeyEvent *event);
    void mousePressEvent(QMouseEvent *event);

private:
    QMediaPlayer * thePlayer;
};

#endif // QMYVIDEOWIDGET_H
